package com.yuntai.pms.model.enums;


import java.util.LinkedHashMap;
import java.util.Map;

public enum CommStatus {

    ENABLE(0, "无效"),
    DISABLE(1, "有效");

    private Integer code;
    private String name;
    private final  static Map<Integer,String> statusMap = new LinkedHashMap<Integer,String>();

    public static Map<Integer, String> getStatusMap() {
        return statusMap;
    }

    static   {
        statusMap.put(CommStatus.ENABLE.getCode(), CommStatus.ENABLE.getName());
        statusMap.put(CommStatus.DISABLE.getCode(), CommStatus.DISABLE.getName());
    }
    private CommStatus(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
